import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt(); // Number of test cases

        for (int i = 0; i < n; i++) {
            String a = scanner.next();
            if (a.contains("a") || a.contains("b") || a.contains("c")) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        scanner.close();
    }
}

